<?php
/*
 * xDesk 2 Desktop 0.1
 * Author: Sergi Ramon Ballart
 * 
 * Main desktop controller
 */

class Desktop extends Controller {

	function Desktop()
	{
		parent::Controller();	
	}
	
	function index()
	{
		$this->load->view('desktop');
	}
	
	function startup() {
		$this->load->view('desktop_startup');
	}
	
	function moduleLoader() {
		// Testing code
		echo file_get_contents(ROOTPATH.'modules/demo/acc-win/client/acc-win.js');
		echo "\n".'xDesk.AccordionWindow.Locale = ';
		echo file_get_contents(ROOTPATH.'modules/demo/acc-win/client/locale/en.json');
	}
}
